﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;

public class PluralButton : MonoBehaviour/*, IPointerExitHandler, IPointerDownHandler, IPointerUpHandler, IPointerClickHandler, IInitializePotentialDragHandler, IBeginDragHandler, IDragHandler, IEndDragHandler, IDropHandler, IScrollHandler, IUpdateSelectedHandler, ISelectHandler, IDeselectHandler, IMoveHandler, ISubmitHandler, ICancelHandler, IEventSystemHandler*/
{
    public UnityAction<EventTriggerListener> call_back_OnClick;
    public EventTriggerListener[] eventTrigger;
    public void Start()
    {
        foreach (var item in eventTrigger)
        {
            item.DoMoveX(false);
        }
    }
    public void OnPointerEnter()
    {
        foreach (var item in eventTrigger)
        {
            item.DoMoveX();
        }
        print("1243");
    }
    public void PressTab(EventTriggerListener tab)
    {
        call_back_OnClick(tab);
    }

}
